package frsf.cidisi.exercise.modelo.util;

public class Orientacion {

	/* Norte = 1
	 * Sur = 2
	 * Este = 3
	 * Oeste = 4
	 */
	
	private int value;

	public Orientacion(){
		this.setValue(3);
	}
	
	public Orientacion(int value) {
		this.setValue(value);
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(! (obj instanceof Orientacion) )
			return false;
		
		if(! (this.value == ((Orientacion)obj).getValue()) )
			return false;
		
		return true;
	}
	
}
